package com.tanhua.dubbo.api.mongo;

import com.tanhua.model.mongo.Sound;

import java.util.Set;

public interface SoundApi {

    /**
     * 保存语音
     * @param sound
     */
    void save(Sound sound);

    /**
     * 获得一条语音
     * @param userId
     * @param gender
     * @param redisIds
     * @return
     */
    Sound getOne(Long userId, String gender, Set<String> redisIds);
}
